﻿

namespace Mulala.Cavan.Domain.MainBoundedContext.SearchModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.DictionaryModule;

    public static class TagSearchFactory
    {
        public static TagSearch CreateTagSearch(DictionaryIdentifier.GroupType type, string value)
        {
            TagSearch tagSearch = new TagSearch();
            tagSearch.GroupType = type;
            tagSearch.Value = value;
            tagSearch.BinaryPosition = -1;

            return tagSearch;
        }

        public static TagSearch CreateTagSearch(DictionaryIdentifier.GroupType type, int binaryPosition)
        {
            TagSearch tagSearch = new TagSearch();
            tagSearch.GroupType = type;
            tagSearch.BinaryPosition = binaryPosition;

            return tagSearch;
        }

        public static TagSearch CreateTagSearch(DictionaryIdentifier.GroupType type)
        {
            TagSearch tagSearch = new TagSearch();
            tagSearch.GroupType = type;
            tagSearch.BinaryPosition = -1;

            return tagSearch;
        }

        public static TagSearch CreateTagSearch(string text)
        {
            TagSearch tagSearch = new TagSearch();
            tagSearch.Text = text;
            tagSearch.BinaryPosition = -1;

            return tagSearch;
        }
    }
}
